package nix.demo7.service;

import java.util.List;

import nix.demo7.dao.BookDao;
import nix.demo7.domain.Book;

public class BookService {

	private BookDao bookDao = new BookDao();
	
	public List<Book> findAll() {
		return bookDao.findAll();
	}
	
	public List<Book> findByCategory(int category) {
		return bookDao.findByCategory(category);
	}
}
